package guava;

import com.google.common.base.Optional;

/**
 * Created by IntelliJ IDEA.
 * User: liuliwei
 * Date: 2017-06-02
 * Time: 下午1:39
 * Description: ${description}
 */
public class GuavaTest {
    public static void main(String[] args) {
        Integer b=null;
        System.out.println(Optional.fromNullable(b).or(3));
        System.out.println(Optional.fromNullable((Integer) null).or(5));
    }

}
